<script>
$(document).ready(function(){
	$("#register_form").validate({
		rules: {
			email: {
				required: true,
				email: true,
				remote: "<?=PATH_URL?>home/check_email"
			},
			password: {
				required: true
			},
			repassword: {
				required: true,
				equalTo: "#password"
			}
		}
	});
});
</script>
<form id="register_form" action="<?=PATH_URL?>home/register_submit" method="post">
	<ul id="FormWithHiddenFields" class="form">
		<li class="formName SmallForm"><font><font>E-mail </font></font><span class="mandatory"><font><font>*</font></font></span></li>
		<li class="formValue SmallForm">
			<input name="email" type="text" id="email" tabindex="12" class="inputText" style="width:180px;">		
		</li>
		<li class="hr LongForm"></li>	
		<li class="formName LongForm"><font><font>Mật khẩu</font></font><span class="mandatory"><font><font>*</font></font></span></li>
		<li class="formValue LongForm">
			<input name="password" type="password" id="password" tabindex="13" class="inputText" style="width:180px;">
		</li>
		<li class="formName HideFormByDefault LongForm" style="display: list-item;"><font><font>Nhập lại mật khẩu</font></font><span class="mandatory"><font><font>*</font></font></span></li>
		<li class="formValue HideFormByDefault LongForm" style="display: block;">
			<input name="repassword" type="password" id="repassword" tabindex="14" class="inputText" style="width:180px;">
		</li>
		<li class="hr LongForm"></li>
		<li class="formValue HideFormByDefault LongForm" style="display: block;">
			<input type='submit' name='submit' value='OK' style='width:80px;' />
		</li>
	</ul>
</form>